import "./assets/main.css";

import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import TuiPlus from "@wocwin/t-ui-plus";
import "@wocwin/t-ui-plus/lib/style.css";
import ElementPlus from "element-plus";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import "dayjs/locale/zh-cn";
import "element-plus/dist/index.css";
import axios from "axios";
import { ThousandSeparator } from "@/utils/directives";
import * as echarts from "echarts"; // 引入echarts
import ArcoVue from "@arco-design/web-vue";
import "@arco-design/web-vue/dist/arco.css";
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";
const app = createApp(App);
app.directive("thousand-separator", ThousandSeparator);
app.config.globalProperties.$echarts = echarts;
app.use(ArcoVue);
app.use(createPinia());
app.use(router);
app.use(TuiPlus);
app.use(VXETable);
// app.use(ElementPlus)
app.config.globalProperties.$axios = axios;
app.use(ElementPlus, {
  locale: zhCn,
});
app.mount("#app");
